﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace J.StatusRepository.Migrations
{
    public partial class status1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "RoomNumManage",
                columns: table => new
                {
                    ID = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoomId = table.Column<int>(type: "int", nullable: false),
                    RoomNumber = table.Column<int>(type: "int", nullable: false),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    Comment = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsShelf = table.Column<bool>(type: "bit", nullable: false),
                    IsLive = table.Column<bool>(type: "bit", nullable: true),
                    IsReserve = table.Column<bool>(type: "bit", nullable: true),
                    DirtyRoom = table.Column<bool>(type: "bit", nullable: true),
                    CleanRoom = table.Column<bool>(type: "bit", nullable: true),
                    IsMaintain = table.Column<bool>(type: "bit", nullable: true),
                    IsRetain = table.Column<bool>(type: "bit", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoomNumManage", x => x.ID);
                });

            migrationBuilder.CreateTable(
                name: "RoomTypeLabelModel",
                columns: table => new
                {
                    ID = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoomTypeLabel = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoomTypeLabelModel", x => x.ID);
                });

            migrationBuilder.CreateTable(
                name: "RoomTypeModel",
                columns: table => new
                {
                    ID = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoomTypeName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RoomTypePrice = table.Column<int>(type: "int", nullable: false),
                    Deposit = table.Column<bool>(type: "bit", nullable: false),
                    DepositPrice = table.Column<int>(type: "int", nullable: true),
                    RoomTypeArea = table.Column<int>(type: "int", nullable: false),
                    Occupancy = table.Column<int>(type: "int", nullable: false),
                    Cohabit = table.Column<bool>(type: "bit", nullable: false),
                    ExtraBed = table.Column<int>(type: "int", nullable: false),
                    ExtraBedPrice = table.Column<int>(type: "int", nullable: true),
                    RoomTypeImgs = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RoomTypeText = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RoomTypeLabel = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    AncillaryServices = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoomTypeModel", x => x.ID);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "RoomNumManage");

            migrationBuilder.DropTable(
                name: "RoomTypeLabelModel");

            migrationBuilder.DropTable(
                name: "RoomTypeModel");
        }
    }
}
